/*

var ulow 
var umid 
var uhigh
var flow
var fmid
var fhigh 
var ilow
var imid 
var ihigh

var ineglow 
var inegmid 
var ineghigh 
*/



function condLE()
{
		writeMenu('"condle"','"COND"','"test <="');
		writeVariables();

		printf('declare u: state,good,bad');
		printf('declare u: ulow,umid,uhigh ');
		printf('declare i: ilow,imid,ihigh ');
		printf('declare f: flow,fmid,fhigh ');				

		printf('<br>','#**** OPEN FILE ****');
  		printf('outFile="/System/Zle.txt"');
		
		writeFileOpen();
		printf('count=0');
		printf('good=0');
		printf('bad=0');
		printf('<br>');

		globalCount=1;

// ***** COPY ******************************************************************************
		// copied all this from conditionalLT.js (<)  and replace < with <=

		// COMPARE u variable to variable (u,i,f) for true,false cases
		trueVarVar("uvar","uvar2", "<=", ulow,umid, totalCases, " uvar <= uvar (should be true)" );
		trueVarVar("uvar", "ivar","<=", ulow,imid, totalCases, " uvar <= ivar (should be true)" );
		trueVarVar("uvar", "fvar","<=", ulow,fmid, totalCases,"uvar <= fvar (should be true) " );
		falseVarVar("uvar","uvar2", "<=", uhigh,umid, totalCases,"uvar <= uvar (should be false)" );
		falseVarVar("uvar","ivar", "<=", uhigh,imid, totalCases, "uvar <= ivar (should be false)" );
		falseVarVar("uvar","fvar", "<=", uhigh,fmid, totalCases, "uvar <= fvar (should be false)" );
	
		// COMPARE u variable to numbers (u,i,f) for true,false cases
		trueVarNum("uvar", "<=", ulow,umid, totalCases, " uvar <= #u (should be true)" );
		trueVarNum("uvar", "<=", ulow,imid, totalCases," uvar <= #i (should be true)" );
		trueVarNum("uvar", "<=", ulow,fmid, totalCases," uvar <= #f (should be true)" );
		falseVarNum("uvar", "<=", uhigh,umid, totalCases," uvar <= #u (should be false)" );
		falseVarNum("uvar", "<=", uhigh,imid, totalCases," uvar <= #i (should be false)" );
		falseVarNum("uvar", "<=", uhigh,fmid, totalCases, " uvar <= #f (should be false)" );

		// COMPARE u constant to variable (u,i,f) for true, false cases
		trueNumVar("uvar", "<=", ulow,umid, totalCases, "  #u <= uvar (should be true)" );
		trueNumVar("ivar", "<=", ulow,imid, totalCases,"  #i <= uvar  (should be true)" );
		trueNumVar("fvar", "<=", ulow,fmid, totalCases," #f <= uvar  (should be true)" );
		falseNumVar("uvar", "<=", uhigh,umid, totalCases," #u <= uvar  (should be false)" );
		falseNumVar("ivar", "<=", uhigh,imid, totalCases,"  #i <= uvar  (should be false)" );
		falseNumVar("fvar", "<=", uhigh,fmid, totalCases, "  #f <= uvar  (should be false)" );
		
		// COMPARE u constant to constant (u,i,f) for true, false cases
		trueNumNum("<=",ulow,uhigh,totalCases," #u <= #u (should be true)");
		trueNumNum("<=",ulow,fhigh,totalCases," #u <= #f (should be true)");
		falseNumNum("<=",uhigh,ulow,totalCases," #u <= #u (should be false)");
		falseNumNum("<=",uhigh,flow,totalCases," #u <= #f (should be false)");

// ****** COPY *****************************************************************************

		// repeat for == case but just do the true cases
		// COMPARE variable to variable (u,i,f) for true  cases
		trueVarVar("uvar","uvar2", "<=", umid,umid, totalCases, " uvar <= uvar (should be true)" );
		trueVarVar("ivar", "ivar2","<=", ilow,ilow, totalCases, " ivar <= ivar (should be true)" );
		trueVarVar("fvar", "fvar2","<=", flow,flow, totalCases,"fvar <= fvar (should be true) " );
	
		// COMPARE variable to numbers (u,i,f) for true cases
		trueVarNum("uvar", "<=", ulow,ulow, totalCases, " uvar <= #u (should be true)" );
		trueVarNum("ivar", "<=", imid,imid, totalCases," ivar <= #i (should be true)" );
		trueVarNum("fvar", "<=", fmid,fmid, totalCases," fvar <= #f (should be true)" );

		// COMPARE constant to variable (u,i,f) for true cases
		trueNumVar("uvar", "<=", ulow,ulow, totalCases, "  #u <= uvar (should be true)" );
		trueNumVar("ivar", "<=", ilow,ilow, totalCases,"  #i <= ivar  (should be true)" );
		trueNumVar("fvar", "<=", flow,flow, totalCases," #f <= fvar  (should be true???)" );
		
		// COMPARE u constant to constant (u,i,f) for true cases
		trueNumNum("<=",ulow,ulow,totalCases," #u <= #u (should be true)");
		trueNumNum("<=",fhigh,fhigh,totalCases," #g <= #f (should be true)");
		
		writeSummary();
		writeFileClose();
		printf('exitscript');

}





